﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using PostSharp4ViewState;

namespace SampleWebApplication
{
   public partial class _Default : System.Web.UI.Page
   {
      [Persist(Mode=PersistMode.ControlState)]
      private string _testValue;
      
      protected void OnSaveClick(object sender, EventArgs e)
      {
         _testValue = box.Text;
      }

      protected void OnLoadClick(object sender, EventArgs e)
      {
         box.Text = _testValue;
      }      
   }
}
